home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
ezzcomm.zip
/
DIALMNP.T
< prev
next >
Wrap
Text File
|
1991-02-16
|
8KB
|
144 lines
: EZ-ZCOMM Copyright 1991 by Roger E. Hough, All Rights Reserved.
: Licensed for use at your own risk without fee. Altered versions,
: when distributed, must be clearly marked as altered and accompanied
: by the originals.
ife "dT||!%telno" fail;ife r nolog closerx;kill
ena -dfEKS!abcilnptuvwzZ ha both
display stat=off noinhibit nodumb vt100 8bit
ph0 pt4 z pp50 pt100 pB2 set blankfill " " sets s9 %telno
pat;pat 0 ERROR;pat 1 BUSY
pat 2 "NO DIALTONE";pat 3 "NO DIAL TONE"
pat 4 "NO ANSWER";pat 5 "NO CARRIER"
pat 8c CONNECT "@pat 10i \n"
pat 9c "NO ECL" "@pat 10i \n"
: speed on CONNECT statement must be DCE(carrier) speed
pat 11c " 300" "@estimate 0 300"
pat 12c " 600" "@estimate 0 600"
pat 13c " 1200" "@estimate 0 1200"
pat 14c " 2400" "@estimate 0 2400"
pat 15c " 4800" "@estimate 0 4800"
pat 16c " 9600" "@estimate 0 9600"
pat 17c " 14400" "@estimate 0 14400"
: port is "locked" at highest speed supported by modem
next:
bye;speed 38400;estimate 0 300;pat 10c "";split s9 + "";sets s9 %z1;split z0 "." ""
: '.m' affixed to telephone number indicates MNP/V42 capable BBS
set z2 &Q6 if %z1&&Jz1,mM set z2 &Q5 : mnp enablement differs by modem
: set z2 "&Q5S36=3" if %z1&&Jz1,mM set z2 "&Q5S36=7" : for Hayes with V.42
: mprefix is set to either T(tone dial) or P(pulse dial)
put "AT%z2\&D%mprefix%z0%msuffix"
pf60 wait -f60;if 10 sets telno %z0 pf30 display nostat=off;cls;queue delete;ki create -+ %n9/ZC%d%ano.LOG;return
if 1||2||3 ife %s9 goback next;pi45 pat;bye;fail :modem detects busy
:if 1||2||3||5 ife %s9 goback next;pi45 pat;bye;fail :modem doesn't see 'busy'
pi0 set telno "" queue delete;pat;bye;fail
init:
set msuffix \r set onexit
@ife r nolog closerx;ife t nolog closetx;ife !c putw ATZ\r
ife c return; bye; display stat=off;ena -8g;handshake both
pat; pat 0 "OK\r\n";pat 1 "ERROR\r\n"
speed 38400 : use highest port speed supported by your modem
put "ATZ\r";wait -f15
: note: '\\' will send '\' to modem
put "ATM0V1&B1&H1&C1&D2&S1&R2\r";wait -f15
put "ATE0X4S0=0S2=255S6=6S7=50S15=8\r";wait -f15
pat;return
:
:Command Description
:------- --------------------------------------------------------
: E0 eliminate echoing of commands
: M0 Turn off speaker (M3 if you want to hear the phone ring)
: V1 Result codes rather than numbers
: &B1 USR Lock speed between your modem and computer
: &H1 USR Enable CTS flow control
: &C1 Request proper Carrier Detection
: &D2 Disconnect and return to command state when DTR drops
: &Q5 Hayes - Enable MNP Handshake
: &Q6 Hayes - Speed Buffering without error correction
: &R2 USR Enable RTS flow control
: &S1 Request proper DSR indication (as per EIA RS232C)
: X4 Connect Messages with 'busy' and 'no dial tone' recognition.
: Use whatever value returns a one-line connect message without
: spurious 'voice' recognition.
: S0=0 Do not answer the phone
: S2=255 Disable +++ escape, to avoid problems when we type +++ or
: the remote types +++ and we echo it
: S6=6 Wait up to 6 Seconds(for Dial Tone, or for Blind Dialing)
: S7=50 Wait 50 seconds for the phone to be answered
: S15=8 USR Reduce locked port buffering for non-MNP/V42 connections
:
: other commands which may be appropriate:
:
: &A3 USR with V.42: expanded connect messages
: &T5 do not grant remote digital loop for remote modems
: (UUUUU stuff)
: &U0 For ATI(2400, at least) enable/disable MNP data compression
: For Hayes, enable V.32 trellis encoding
: &K0 USR without V.42bis: disable MNP5 data compression. MNP5
: slows transfer of files compressed with ARC/PAK/ZIP/etc.
: &K1 Hayes RTS/CTS Flow Control
: &K3 USR with V.42bis: allow V.42bis but not MNP5 compression
: Hayes RTS/CTS Flow Control(same as &K1)
: ATI may also recognize this as flow control.
: W2 Hayes report carrier speed on CONNECT response
: X7 USR like X4 but dial blind and say 'ringing' on ringback
: S36=3 Hayes attempt LAP-M, then fall back to speed buffered async
: S36=7 Hayes attempt LAP-M, then MNP, then fall back to speed
: buffered async
: S48=7 Hayes: Initiate error correction (for caller)
: =3 Wait for other end to initiate error correction(for callee)
: S95=3 Hayes Indicate connect speed and /ARQ
: S49=16 Hayes Async Buffer Lower Bound
: S50=32 Hayes Async Buffer Upper Bound
:
: Guidelines which apply to all error correcting modems:
:
: o Speed buffering should be used(port speed should be locked).
: o Buffer should be purged on 'break' from your PC or from the
: remote.
: o The modem should use RTS/CTS rather than XON/XOFF flow control.
: o The modem should use RTS/CTS to indicate when it cannot accept
: additional data and should recognize when your PC has indicated
: that it is unable to accept additional data from your modem.
: o MNP4 and V.42 are always desirable. Allowing MNP5 will reduce
: ARC/PAK/ZIP file transfer speed. Allowing V.42bis does will not
: noticably reduce ARC/PAK/ZIP file transfer speed, nor will it
: help.
: o Reduce transmit(outbound) buffering to very small numbers. For
: error correcting links, a hundred characters may be needed. For
: non-error-correcting links, a dozen characters should be
: plenty.
: o When dialing, the modem should request an error correcting link
: whenever the carrier speed is 9600bps or more, but should only
: request an error correcting link below 9600bps if '.m' appears
: as a prefix to the telephone number in the dialing directory.
: By convention, a BBS with an error correcting modem will pause
: for 6 to 12 seconds before the first characters from the BBS
: appear, awaiting MNP or V.42 link requests. Requesting error
: correction when the modem being called does not have error
: correction available will cause most forms of bulletin board
: software to malfunction. Modems with speeds of 9600bps or more
: can safely be assumed to be capable of accepting a request for
: an error correcting link.
: o The modem should be set to make the CONNECT line the last line
: of response. Error correction and data compression messages
: should be indicated either on previous lines or on the same
: line.
: o The modem must be set to react to the lowering of DTR by
: hanging up(placing phone on hook) and reverting to command
: state without re-initializing its settings.
: o The modem should be set to recognize BUSY if at all possible.
: o The modem should be set to recognize a lack of dial tone if at
: all possible.
: o The modem should be set to recognize NO ANSWER if at all
: possible.
: o The modem should not be set to attempt recognition of voice
: connections.
: o The modem should not be set to grant remote digital loop for
: remote modems. If you see strings of uppercase U's(UUUUUU),
: you've probably left this enabled.
: o If the 'time to wait before recognizing carrier' value is too
: small, it will result in false carrier detection on connects.
: If you observe carrier being detected and then lost again very
: soon afterward, or if your modem connects at 300bps to a
: high-speed modem, try adjusting this value.